package com.ruihang.generalibrary.db;


import com.ruihang.generalibrary.utils.ResultAsyncTask;

/**
 * Created by panxd on 2016/9/26.
 */
public abstract class DataFreshAsyncTask<D> extends ResultAsyncTask<D> {
    protected D data;

    public DataFreshAsyncTask(D data) {
        this.data = data;
    }

    @Override
    protected D doInBackground(Void... voids) {
        dataFresh();
        return data;
    }

    protected abstract void dataFresh();
}
